package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.BuyerShow;
import com.weixing.mall.provider.model.dto.BuyerShowChgStatusDto;
import com.weixing.mall.provider.model.query.BuyerShowQuery;
import com.weixing.mall.provider.model.vo.BuyerShowDetilVo;
import com.weixing.mall.provider.model.vo.BuyerShowListVo;
import com.weixing.mall.provider.model.vo.BuyerShowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品模块-商品买家秀 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface BuyerShowMapper extends BaseMapper<BuyerShow> {
    IPage<BuyerShowVo> selectList(@Param("pg") Page page, @Param("qs")BuyerShowQuery buyerShowQuery);

    void delAll(int[] ids);

    BuyerShowDetilVo queryDetails(Long id);

    void updateStatus(@Param("qs")BuyerShowChgStatusDto buyerShowChgStatusDto);

    List<BuyerShowVo> selectListTo(@Param("qs")BuyerShowQuery buyerShowQuery);

    IPage<BuyerShowListVo> selectListOfPage(@Param("pg") Page page,@Param("goodsId")Long goodsId);

    IPage<BuyerShowListVo> selectAllListOfPage(@Param("pg") Page pag);
}
